<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 4.3.2 or newer
 *
 * @package CodeIgniter
 * @author  ExpressionEngine Dev Team
 * @copyright  Copyright (c) 2006, EllisLab, Inc.
 * @license http://codeigniter.com/user_guide/license.html
 * @link http://codeigniter.com
 * @since   Version 1.0
 * @filesource
 */

// --------------------------------------------------------------------

/**
 * CodeIgniter CMS Class
 *
 * This class makes is easy to fetch CMS blocks content and other relate operations
 *
 * @package		CodeIgniter
 * @author		Stephane Kouakou
 * @subpackage	Libraries
 * @category	Libraries
 * @link		http://www.ollyworks.com/
 * @copyright  Copyright (c) 2012, Stephane Kouakou <stephane@ollyworks.com>.
 * @version 1.0.1
 * 
 */
 
class Cms {

	private $_ci;
	
	public function __construct() {
		$this->_ci = & get_instance();
    }
	
	public function fetchPageContent($type) {
		$ret = '';
		$page 	= new Tpl_page(); 
		$page->where('type',trim($type))->get(1);
		if($page->exists()) $ret = $page->content;
		return $ret;
	}
	
}

/* End of file Someclass.php */